package chonggou;

public class ChongGouTest {
	public static void main(String[] args) {
		Movie m1 = new RegularMovie("八年抗战");
		Movie m2 = new ChildrenMovie("豆豆");
		Movie m3 = new NewReleaseMovie("花千骨");
		
		Rental r1 = new Rental(m1, 2);
		Rental r2 = new Rental(m2, 4);
		Rental r3 = new Rental(m3, 3);
		
		Customer customer = new Customer("张三");
		customer.addRental(r1);
		customer.addRental(r2);
		customer.addRental(r3);
		
		System.out.println(customer.statement());
		
	}
}
